def my_function(num):
    result = int(num) + int(num*2) + int(num*3)
    return result

result = my_function('5')
print(result)   # => 615